/*
 * iodata.cpp
 *
 *  Created on: 29/04/2012
 *      Author: adriia
 */

#include "iodata.h"
#include <string>
#include <iostream>
#include <list>

void PintaVides00 (void);
void PintaVides01 (void);
void PintaVides02 (void);
void PintaVides03 (void);
void PintaVides04 (void);
void PintaVides05 (void);
void PintaVides06 (void);
void PintaVides07 (void);
void PintaVides08 (void);
void PintaVides09 (void);


using namespace std;

void BenBinguda (void){
	cout << "**************************************"<<endl;
	cout << "*====================================*"<<endl;
	cout << "*===== HOLA BENBINGUT AL PENJAT =====*"<<endl;
	cout << "*====================================*"<<endl;
	cout << "**************************************"<<endl;
}
void PintaVides00 (void) {

	cout <<	"***||||||||||||||||||||"<<endl;
}

void PintaVides01 (void) {

	cout << "         "<<endl;
	cout << "          "<<endl;
	cout << "           "<<endl;
	cout << "             "<<endl;
	cout << "             "<<endl;
	cout << "           "<<endl;
	cout << "*             "<<endl;
	cout << "*              "<<endl;
	cout << "*"<<endl;
	cout <<	"*"<<endl;
	cout <<	"*"<<endl;
	cout <<	"*"<<endl;
	cout <<	"**"<<endl;
	cout <<	"***||||||||||||||||||||"<<endl;
}

void PintaVides02 (void) {

	cout << "*  *           "<<endl;
	cout << "* *            "<<endl;
	cout << "**             "<<endl;
	cout << "*              "<<endl;
	cout << "*              "<<endl;
	cout << "*             "<<endl;
	cout << "*              "<<endl;
	cout << "*             "<<endl;
	cout << "*"<<endl;
	cout <<	"*"<<endl;
	cout <<	"*"<<endl;
	cout <<	"*"<<endl;
	cout <<	"**"<<endl;
	cout <<	"***||||||||||||||||||||"<<endl;
}

void PintaVides03 (void) {
	cout << "****************"<<endl;
	cout << "*  *           "<<endl;
	cout << "* *            "<<endl;
	cout << "**             "<<endl;
	cout << "*              "<<endl;
	cout << "*              "<<endl;
	cout << "*              "<<endl;
	cout << "*             "<<endl;
	cout << "*              "<<endl;
	cout << "*"<<endl;
	cout <<	"*"<<endl;
	cout <<	"*"<<endl;
	cout <<	"*"<<endl;
	cout <<	"**"<<endl;
	cout <<	"***||||||||||||||||||||"<<endl;
}

void PintaVides04 (void) {
	cout << "****************"<<endl;
	cout << "*  *           *"<<endl;
	cout << "* *            *"<<endl;
	cout << "**             *"<<endl;
	cout << "*              *"<<endl;
	cout << "*              "<<endl;
	cout << "*              "<<endl;
	cout << "*              "<<endl;
	cout << "*              "<<endl;
	cout << "*"<<endl;
	cout <<	"*"<<endl;
	cout <<	"*"<<endl;
	cout <<	"*"<<endl;
	cout <<	"**"<<endl;
	cout <<	"***||||||||||||||||||||"<<endl;
}

void PintaVides05 (void) {
	cout << "****************"<<endl;
	cout << "*  *           *"<<endl;
	cout << "* *            *"<<endl;
	cout << "**             *"<<endl;
	cout << "*              *"<<endl;
	cout << "*              @"<<endl;
	cout << "*             	"<<endl;
	cout << "*              "<<endl;
	cout << "*              "<<endl;
	cout << "*"<<endl;
	cout <<	"*"<<endl;
	cout <<	"*"<<endl;
	cout <<	"*"<<endl;
	cout <<	"**"<<endl;
	cout <<	"***||||||||||||||||||||"<<endl;
}

void PintaVides06 (void) {
	cout << "****************"<<endl;
	cout << "*  *           *"<<endl;
	cout << "* *            *"<<endl;
	cout << "**             *"<<endl;
	cout << "*              *"<<endl;
	cout << "*              @"<<endl;
	cout << "*             /| "<<endl;
	cout << "*              "<<endl;
	cout << "*              "<<endl;
	cout << "*"<<endl;
	cout <<	"*"<<endl;
	cout <<	"*"<<endl;
	cout <<	"*"<<endl;
	cout <<	"**"<<endl;
	cout <<	"***||||||||||||||||||||"<<endl;
}

void PintaVides07 (void) {
	cout << "****************"<<endl;
	cout << "*  *           *"<<endl;
	cout << "* *            *"<<endl;
	cout << "**             *"<<endl;
	cout << "*              *"<<endl;
	cout << "*              @"<<endl;
	cout << "*             /|) "<<endl;
	cout << "*              |"<<endl;
	cout << "*               "<<endl;
	cout << "*"<<endl;
	cout <<	"*"<<endl;
	cout <<	"*"<<endl;
	cout <<	"*"<<endl;
	cout <<	"**"<<endl;
	cout <<	"***||||||||||||||||||||"<<endl;
}


void PintaVides08 (void) {
	cout << "****************"<<endl;
	cout << "*  *           *"<<endl;
	cout << "* *            *"<<endl;
	cout << "**             *"<<endl;
	cout << "*              *"<<endl;
	cout << "*              @"<<endl;
	cout << "*             /|) "<<endl;
	cout << "*              |"<<endl;
	cout << "*             /  "<<endl;
	cout << "*"<<endl;
	cout <<	"*"<<endl;
	cout <<	"*"<<endl;
	cout <<	"*"<<endl;
	cout <<	"**"<<endl;
	cout <<	"***||||||||||||||||||||"<<endl;

}

void PintaVides09 (void) {

	cout << "****************"<<endl;
	cout << "*  *           *"<<endl;
	cout << "* *            *"<<endl;
	cout << "**             *"<<endl;
	cout << "*              *"<<endl;
	cout << "*              @"<<endl;
	cout << "*             /|) "<<endl;
	cout << "*              |"<<endl;
	cout << "*             / ) "<<endl;
	cout << "*"<<endl;
	cout <<	"*"<<endl;
	cout <<	"*"<<endl;
	cout <<	"*"<<endl;
	cout <<	"**"<<endl;
	cout <<	"***||||||||||||||||||||"<<endl;

}


void PintaVides (int num_vides){
string pintaFinal;

pintaFinal = ":)";

if (num_vides == 9){
	PintaVides00();
}
else if (num_vides == 8){
	PintaVides01();
}
else if (num_vides == 7){
	PintaVides02();
}
else if (num_vides == 6){
	PintaVides03();
}
else if (num_vides == 5){
	PintaVides04();
}
else if (num_vides == 4){
	PintaVides05();
}
else if (num_vides == 3){
	PintaVides06();
}
else if (num_vides == 2){
	PintaVides07();
}
else if (num_vides == 1){
	PintaVides08();
}
else if (num_vides == 0){
	PintaVides09();
}

}

void PintaGuionets (list <char> llista_lletres){
	list <char>::iterator pos;
	for (pos = llista_lletres.begin(); pos != llista_lletres.end(); pos++){
		cout <<*pos<<" ";
	}
	cout<<endl;
}

char DemanaLletra (void){
	char lletra_dita;

	cout << "Dona'm una lletra i miraré si la paraula la conté"<<endl;
	cin >> lletra_dita;
	return lletra_dita;
}



